﻿@model StudentManagement.Models.Student

@{ 
    Layout = null;
}

<h3>@ViewBag.PageTitle</h3>

<form method="post" asp-controller="student" asp-action="AddOrEdit" asp-route-id="@Model.Id" 
      onsubmit="return doPost(this);">

    <div class="form-group row">
        <label asp-for="Name" class="col-sm-10 col-form-label">姓名：</label>
        <div class="col-sm-10">
            <input asp-for="Name" class="form-control" />
            <span asp-validation-for="Name" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <label asp-for="Major" class="col-sm-10 col-form-label">主修专业：</label>
        <div class="col-sm-10">
            <input asp-for="Major" class="form-control" />
            <span asp-validation-for="Major" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <label asp-for="Email" class="col-sm-10 col-form-label"></label>
        <div class="col-sm-10">
            <input asp-for="Email" class="form-control" placeholder="邮箱" />
            <span asp-validation-for="Email" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <label asp-for="EnrollmentDate" class="col-sm-10 col-form-label"></label>
        <div class="col-sm-10">
            <input asp-for="EnrollmentDate" type="date" class="form-control" placeholder="入学日期" />
            <span asp-validation-for="EnrollmentDate" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <div class="col-sm-10">
            <button type="submit" class="btn btn-primary">保存</button>
        </div>
    </div>
</form>